package hypeerweb.visitor;

import hypeerweb.node.Node;

/**
 * A SendVisitor specialized to send a BroadcastVisitor to the 0 node and begin
 * broadcasting.
 * 
 * @author Ben Romney
 */
public class BroadcastHelper extends SendVisitor {

	private BroadcastVisitor bv;

	public BroadcastHelper(BroadcastVisitor bv) {
		this.bv = bv;
	}

	@Override
	protected void targetOperation(Node node, Parameters parameters) {
		node.accept(bv, parameters);
	}

}
